﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" EnableEventValidation="false" CodeFile="News.aspx.cs" Inherits="News" Title="Untitled Page" %>



<%-- 显示新闻内容 --%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderTop" runat="Server">

    <script language="javascript" type="text/javascript">
    function ContentSize(size)
    {
	    var obj=document.getElementById("content");
	    obj.style.fontSize=size>0 ? size+"px" : "";
	    if (arguments.length==1){
		setCookie("iwmsFontSize",size,size==0?-1:1);
	}
	}
    function ContentBg(color)
    {
	    var obj=document.getElementById("bodyTd");
	    obj.style.backgroundColor=color;
	    if (arguments.length==1){
		setCookie("iwmsContBg",color,color.length==0?-1:1);
	}
    }
    function InitContStyle()
    {
	    var v=getCookie("iwmsFontSize");
	    if (v.length>0){
		ContentSize(v,false);
	}
	v=getCookie("iwmsContBg");
	if (v.length>0){
		ContentBg(v,false);
	}
    }
    </script>

    <div class="news">
        <!-- 模块顶部样式 -->
        <div class="news_mainContentTop">
        </div>
        <!-- 主要内容 -->
        <div class="news_mainContent">
            
            <!-- 显示新闻内容 -->
            <div class="news_articleContent">
                <h1>
                   <!-- 与数据库区分，在此所有与News表对应的字段全部小写 -->
                    <asp:Label ID="lblTitle" runat="server" Text="title"></asp:Label></h1>
                <p></p>
                <p><asp:Label ID="lblcontents" runat="server" Text="contents"></asp:Label></p>
                
                <div class="news_articleContent_Footer">
                    <p><asp:Label ID="lblauthor" runat="server" Text="author"></asp:Label> 发表于：<asp:Label ID="lblpubdate" runat="server" Text="pubdate"></asp:Label>&nbsp;| &nbsp;阅读<asp:Label ID="lblclicked" runat="server" Text="clicked"></asp:Label>次</p>
                    <p>【 <a href="#" target="_blank">推荐</a> 】【 字体：<a href="javascript:ContentSize(16)">大</a><a href="javascript:ContentSize(0)">中</a> <a href="javascript:ContentSize(12)">小</a>】 </p>
                </div>
            </div>
            
            <!-- 模块底部样式 -->
            <div class="news_mainContentEnd">
            </div>
        </div>
    </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="Server">
   
    <div class="news">
        <!-- 模块顶部样式 -->
        <div class="news_mainContentTop">
        </div>
        <!-- 主要内容 -->
        <div class="news_mainContent">
        <div class="news_commentsContent">
            </div>
            <!-- 模块底部样式 -->
            <div class="news_mainContentEnd">
            </div>
        </div>
    </div>
    
</asp:Content>
